﻿using System;
using System.Collections.Generic;

namespace ECBS_Backend.utils
{
    public class RequestBody
    {
        public Dictionary<string, object> functionArg;

        public Dictionary<string, object> transactionArg;

        public string v = "1.0.0";

        public string functionName;

        public RequestBody(Dictionary<string, object> functionArg, Dictionary<string, object> transactionArg, string functionName)
        {
            this.functionArg = functionArg;
            this.transactionArg = transactionArg;
            this.functionName = functionName;
        }

        public RequestBody(Dictionary<string, object> functionArg, string functionName)
        {
            this.functionArg = functionArg;
            this.functionName = functionName;
            this.transactionArg = new Dictionary<string, object>();
        }
    }
}
